package com.xunwulian.base.constant;

import com.xunwulian.base.util.TripEnumType;

/**
 * 流量套餐
 */
public enum PkgType implements TripEnumType<PkgType, Integer, String, Integer> {

    M10(1, "3元10M套餐", 3),
    M30(2, "5元30M套餐", 5),
    M70(3, "10元70M套餐", 10),
    M150(4, "20元150M套餐", 20),
    M500(5, "30元500M套餐", 30),
    M700(6, "40元700M套餐", 40),
    G1(7, "50元1G套餐", 50),
    G2(8, "70元2G套餐", 70),
    G3(9, "100元3G套餐", 100),
    G4(10, "130元4G套餐", 130),
    G6(11, "180元6G套餐", 180),
    G11(12, "280元11G套餐", 280),
    G20(13, "460元20G套餐", 460),
    G30(14, "650元30G套餐", 650),
    G50(15, "1000元50G套餐", 100),
    UNKNOWN(99, "未知", 0);

    public final int type;
    public final String desc;
    public final int price;

    PkgType(int type, String desc, int price) {
        this.type = type;
        this.desc = desc;
        this.price = price;
    }

    @Override
    public Integer getType() {
        return this.type;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }

    @Override
    public Integer getData() {
        return this.price;
    }

}
